package main

import "fmt"

var c chan int;

func for_prt() {
	for i := 0; i < 10; i++ {
		fmt.Printf("i %d \n", i);
		c <- i;
	} 
}

func main() {
	c = make(chan int);
	go for_prt();
	i := <-c;
	fmt.Printf("main %d \n", i);
}
